package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.SalChanceMapper;
import com.entity.SalChance;
import com.entity.SalChanceExample;
import com.service.SalChanceService;

@Service("salService")
public class SalChanceServiceImpl implements SalChanceService {
	@Autowired
	private SalChanceMapper salChanceMapper;
	@Override
	public int deleteByPrimaryKey(Long chcId) {
		// TODO Auto-generated method stub
		return salChanceMapper.deleteByPrimaryKey(chcId);
	}

	@Override
	public int insert(SalChance record) {
		// TODO Auto-generated method stub
		return salChanceMapper.insert(record);
	}

	@Override
	public int insertSelective(SalChance record) {
		// TODO Auto-generated method stub
		return salChanceMapper.insertSelective(record);
	}

	@Override
	public List<SalChance> selectByExample(SalChanceExample example) {
		// TODO Auto-generated method stub
		return salChanceMapper.selectByExample(example);
	}

	@Override
	public SalChance selectByPrimaryKey(Long chcId) {
		// TODO Auto-generated method stub
		return salChanceMapper.selectByPrimaryKey(chcId);
	}

	@Override
	public List<SalChance> selectAllSalChance() {
		// TODO Auto-generated method stub
		return salChanceMapper.selectAllSalChance();
	}
	
	@Override
	public int updateByPrimaryKeySelective(SalChance record) {
		// TODO Auto-generated method stub
		return salChanceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SalChance record) {
		// TODO Auto-generated method stub
		return salChanceMapper.updateByPrimaryKey(record);
	}

	public SalChanceMapper getSalChanceMapper() {
		return salChanceMapper;
	}

	public void setSalChanceMapper(SalChanceMapper salChanceMapper) {
		this.salChanceMapper = salChanceMapper;
	}

}
